from docxtpl import DocxTemplate
tpl = DocxTemplate('./test.docx')
#这些字段从csv中获取
context = {
   "name": "ali",
   "department": "communication",
   "position": "CEO",
   "time": "2019",
   "contact": "1234567",
   "email": "abc@ali.com",
}
tpl.render(context)
#tpl.save("{}.docx".format(name))
